package com.wang.service.impl;

import com.wang.a.UserProfileFeign;
import com.wang.dao.GoodsMapper;
import com.wang.domain.Goods;
import com.wang.service.IGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wangyandong
 * @date 2020/2/1 11:29
 */
@Service
public class GoodsOrderServiceImpl implements IGoodsService {

    @Autowired
    private GoodsMapper goodsOrderMapper;

    @Autowired
    private UserProfileFeign userProfileFeign;

    @Override
    public Goods getById(Integer id) {
        if (id == null){
            return null;
        }
        Goods goods = goodsOrderMapper.selectByPrimaryKey(id);

        return goods;
    }
}
